package com.company.笔试.stream.demo1;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Stream;

/**
 * @ClassName StreamTest1
 * @Description TODO
 * @Author 11
 * @Date 2021/5/26 16:33
 * @Version 1.0
 */
public class StreamTest1 {
    public static void main(String[] args) {
        List<String> list = Arrays.asList("a","b","c");
        Stream stram = list.stream();//顺序流
//        Stream parallelSteam = list.parallelStream();//并行流

        stram.forEach(System.out::println);


    }


}
